<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>家长同学业务平台</title>

    <title>高考志愿填报</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/font-awesome.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="${request.contextPath}/statics/css/all-skins.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/main.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

<link href="/gaokao-admin/statics/css/hua.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wtou">
 <div class="wjz1000">
  <div class="logo"><img src="/gaokao-admin/statics/images/p00003440.jpg" width="206" height="76" /></div>
  <div class="you"></div>
 </div>
 <div class="clear"></div>
</div>

<div class="wdh">
 <div class="dh1000">
  <ul>
   <a href="http://www.jiazhangtongxue.cn/">首页</a>
   <a href="http://www.jiazhangtongxue.cn/about/?11.html">合作业务</a>
   <a href="http://www.jiazhangtongxue.cn/about/?5.html">平台支持</a>
   <a href="http://www.jiazhangtongxue.cn/about/?8.html">盈利分析</a>
   <a href="http://www.jiazhangtongxue.cn/list/?15_1.html">资料下载</a>
   <a href="http://www.jiazhangtongxue.cn/about/?19.html">关于我们</a>
  </ul>
 </div>
</div>

<div class="wzw">
 <div class="hzuo"><img src="/gaokao-admin/statics/images/login-left.png" width="607" height="308" /></div>
 <div class="hyou">
  <div class="login-box-body" id="rrapp" v-cloak>
      <p class="login-box-msg">登录</p>
      <div v-if="error" class="alert alert-danger alert-dismissible">
        <h4 style="margin-bottom: 0px;"><i class="fa fa-exclamation-triangle"></i> {{errorMsg}}</h4>
      </div>
      <div class="form-group has-feedback">
        <input type="text" class="form-control" v-model="username" placeholder="账号">
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input type="password" class="form-control" v-model="password" placeholder="密码">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input type="text" class="form-control" v-model="captcha" @keyup.enter="login" placeholder="验证码">
        <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <img alt="如果看不清楚，请单击图片刷新！" class="pointer" :src="src" @click="refreshCode">
        &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" @click="refreshCode">点击刷新</a>
      </div>
      
      
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox icheck">
          </div>
        </div>
        <!-- /.col -->
        <div class="col-xs-4">
          <button type="button" class="btn btn-primary btn-block btn-flat" @click="login">登录</button>
        </div>
        <!-- /.col -->
      </div>
    <!-- /.social-auth-links -->

  </div>
  <!-- /.login-box -->
<script src="/gaokao-admin/statics/libs/jquery.min.js"></script>
<script src="/gaokao-admin/statics/libs/vue.min.js"></script>
<script src="/gaokao-admin/statics/libs/bootstrap.min.js"></script>
<script src="/gaokao-admin/statics/libs/jquery.slimscroll.min.js"></script>
<script src="/gaokao-admin/statics/libs/fastclick.min.js"></script>
<script src="/gaokao-admin/statics/libs/app.js"></script>
<script type="text/javascript">
var vm = new Vue({
	el:'#rrapp',
	data:{
		username: '',
		password: '',
		captcha: '',
		error: false,
		errorMsg: '',
		src: 'captcha.jpg'
	},
	beforeCreate: function(){
		if(self != top){
			top.location.href = self.location.href;
		}
	},
	methods: {
		refreshCode: function(){
			this.src = "captcha.jpg?t=" + $.now();
		},
		login: function (event) {
			var data = "username="+vm.username+"&password="+vm.password+"&captcha="+vm.captcha;
			$.ajax({
				type: "POST",
			    url: "sys/login",
			    data: data,
			    dataType: "json",
			    success: function(result){
					if(result.code == 0){//登录成功
						parent.location.href ='index.html';
					}else{
						vm.error = true;
						vm.errorMsg = result.msg;
						
						vm.refreshCode();
					}
				}
			});
		}
	}
});
</script>
 
 </div>
</div>

<div class="wdi">
 <div class="di1000">
  <div class="pzuo">
   <ul>
    <li>首页</li>
    <li>合作业务</li>
    <li>盈利分析</li>
    <li>业务前景</li>
    <li>关于我们</li>
    <li>平台支持</li>
   </ul>
  </div> 
  <div class="pyou">服务电话：133 6133 7272</div>
 </div>
</div>
</body>
</html>
